﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Coldairarrow.Entity.DTO
{
    public class DistributionDataAjaxResult
    {
        /// <summary>
        /// 是否成功
        /// </summary>
        public bool Success { get; set; } = true;

        /// <summary>
        /// 错误代码
        /// </summary>
        public int ErrorCode { get; set; }

        /// <summary>
        /// 返回消息
        /// </summary>
        public string Msg { get; set; }
        public List<InventoryDataDTO> dateInfo { get; set; }
    }


    /// <summary>
    /// 智能配货数据
    /// </summary>
    public  class DistributionDataDTO
    {
        public string Id { get; set; }
        /// <summary>
        /// 批次号
        /// </summary>
        public string BatchNumber { get; set; }
        /// <summary>
        /// 物料ID
        /// </summary>
        public string MaterialId { get; set; }
        /// <summary>
        /// 清单主ID
        /// </summary>
        public string DesignListId { get; set; }
         
        /// <summary>
        /// 清单子表ID
        /// </summary>
        public string PB_DesignListInfo { get; set; }
        /// <summary>
        /// 物料编码
        /// </summary>

        ///货架名称
        public string RackName { get; set; }
        public string MaterialCode { get; set; }

        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterialName { get; set; }
        /// <summary>
        /// 物料规格
        /// </summary>
        public string MaterialSpec { get; set; }
        /// <summary>
        /// 货位名称
        /// </summary>
        public string LocationName { get; set; }
        /// <summary>
        /// 仓库名称
        /// </summary>
        public string StorageName { get; set; }
        /// <summary>
        /// 库区名称
        /// </summary>
        public string StorAreaName { get; set; }
        /// <summary>
        /// 预计发货数量
        /// </summary>
        public double? EstimatedQuantity { get; set; }

        /// <summary>
        /// 仓库里面数量
        /// </summary>
        public double? StockNumber { get; set; }
        /// <summary>
        /// 默认反填发货值 备货数量默认
        /// </summary>
        public double? StockVolume { get; set; }
        public double? StockVolumecache { get; set; }
        public double? SumStockVolume { get; set; }

        /// <summary>
        /// 设计数量
        /// </summary>
        public double? Nums { get; set; }
        /// <summary>
        /// 应发数量
        /// </summary>
        public double? RealNums { get; set; }
        
        /// <summary>
        /// 已备货数量
        /// </summary>
        public double? ReadyNums { get; set; }

        /// <summary>
        /// 已备货重量
        /// </summary>
        public double? PreparedWeight { get; set; }

        /// <summary>
        /// 已发货数量
        /// </summary>
        public double? ShippedNums { get; set; }
        /// <summary>
        /// 货区Id
        /// </summary>
        public String AreaId { get; set; }

        /// <summary>
        /// 货架Id
        /// </summary>
        public String RackId { get; set; }
        /// <summary>
        /// 货位
        /// </summary>
        public string LocationId { get; set; }
        /// <summary>
        /// 清单子表ID
        /// </summary>
        public String SubId { get; set; }
        /// <summary>
        /// 应备数量
        /// </summary>
        public double? ShouldNumber { get; set; }
        /// <summary>
        /// 设计清单明细序号
        /// </summary>
        public int? Slot { get; set; }

        public string onlyId { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remarks { get; set; }
        /// <summary>
        /// 单位名称
        /// </summary>
        public string groupName { get; set; }
    }
    public enum StocktypeIn
    {
        //先入
        FirstIn=0,
        //后入
        FirstOut=1,
        //货位
        CargoSpaceorder= 2
    }
}
